/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.assignment2.openclose.violation;

/**
 *
 * @author yandiswa
 */
public class Account {
      private int accNum;
    private double accBalance;

    public Account(){}
    

    public void deposit(double cash){   // this violates the Open/Closed Principle
        setAccBalance(getAccBalance() + cash);             // to be extended it needs to be modified/changed at the source
    }

    /**
     * @return the accNum
     */
    public int getAccNum() {
        return accNum;
    }

    /**
     * @param accNum the accNum to set
     */
    public void setAccNum(int accNum) {
        this.accNum = accNum;
    }

    /**
     * @return the accBalance
     */
    public double getAccBalance() {
        return accBalance;
    }

    /**
     * @param accBalance the accBalance to set
     */
    public void setAccBalance(double accBalance) {
        this.accBalance = accBalance;
    }
    
}
